/** 主表 **/

import Layout from '@/layout';

const samplesRouter = {
  path: '/samples',
  component: Layout,
  redirect: '',
  name: 'Samples',
  alwaysShow: true,
  meta: { title: '示例页面', code: 'SAMPLE-1000', icon: 'el-icon-eleme', noCache: false, i18nCode: 'samples.samples' },
  children: [
    {
      path: '',
      name: 'Samples',
      component: () => import('@/views/samples/components/SamplesList'),
      meta: { title: '开发示例', code: 'SAMPLE-1000', icon: 'el-icon-eleme', noCache: false, i18nCode: 'samples.develop' }
    },
    {
      path: 'mixin',
      name: 'Samples',
      component: () => import('@/views/samples/components/SamplesListWithMixin'),
      meta: { title: '开发示例(Mixin)', code: 'SAMPLE-1000', icon: 'el-icon-eleme', noCache: false, i18nCode: 'samples.developMixin' }
    },
    {
      path: 'el-table-pro',
      name: 'Samples',
      component: () => import('@/views/samples/components/SamplesElTableProList'),
      meta: { title: '开发示例(el-table-pro)', code: 'SAMPLE-1000', icon: 'el-icon-eleme', noCache: false, i18nCode: 'samples.developPro' }
    },
    {
      path: 'big-screen',
      name: 'BigScreen',
      component: () => import('@/views/samples/components/BigScreen/index'),
      meta: { title: '大屏展示', code: 'SAMPLE-1000', icon: 'el-icon-platform-eleme', noCache: false, i18nCode: 'samples.bigScreen' }
    }
  ]
};

export default samplesRouter;
